This repository has been archived by the owner on Jan 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from longguikeji/dev/plpl
Dev/plpl
- Loading branch information
Showing
13 changed files
with
73 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/flows/tenant/addSwitchTenant/nodes/addSwitchTenantButton.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
import { FunctionNode } from 'arkfbp/lib/functionNode' | ||
import { StateNode } from '@/nodes/stateNode' | ||
import { TenantModule } from '@/store/modules/tenant' | ||
import TablePageState from '@/admin/TablePage/TablePageState' | ||
|
||
export class SwitchTenant extends FunctionNode { | ||
export class SwitchTenant extends StateNode { | ||
async run() { | ||
const tenantState: TablePageState = this.inputs.com.$store.state.tenant.tenantState | ||
const tenantState: TablePageState = this.getState() | ||
const data = tenantState.dialogs?.switch.data | ||
TenantModule.changeCurrentTenant(data) | ||
const router = this.inputs.params.router | ||
if (tenantState && tenantState.dialogs) { | ||
tenantState.dialogs.switch.visible = false | ||
} | ||
router.push('/') | ||
router.push({ | ||
path: '/', | ||
query: { | ||
tenant: TenantModule.currentTenant.uuid | ||
} | ||
}) | ||
return this.inputs | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.