Skip to content

Commit

Permalink
feat(dashboard): change drawer size
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahoo-Wang committed Apr 18, 2024
1 parent a70fc51 commit f23dfc7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class AuthenticatedComponent implements OnInit {
openChangePwd() {
const drawerRef = this.drawerService.create<UserChangePwdComponent, {}, string>({
nzTitle: `Change User:[${this.currentUser.sub}] Password`,
nzWidth: '30%',
nzWidth: '40vw',
nzContent: UserChangePwdComponent
});
drawerRef.afterOpen.subscribe(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class ConfigEditorService {
}
const drawerRef = this.drawerService.create<ConfigEditorComponent, { configId?: string }, string>({
nzTitle: editorTitle,
nzWidth: '880px',
nzWidth: '80vw',
nzContent: ConfigEditorComponent,
nzContentParams: {
configId
Expand All @@ -58,7 +58,7 @@ export class ConfigEditorService {

const drawerRef = this.drawerService.create<ConfigImporterComponent, {}, string>({
nzTitle: editorTitle,
nzWidth: '40%',
nzWidth: '60vw',
nzContent: ConfigImporterComponent,
nzContentParams: {}
});
Expand All @@ -75,10 +75,9 @@ export class ConfigEditorService {
}

openConfigVersionView(configId: string, version: number, rollbackAfter: (result: boolean) => void): void {

const drawerRef = this.drawerService.create<ConfigVersionComponent, { configId: string, version: number }, string>({
nzTitle: `Config [${configId}] Version [${version}]`,
nzWidth: '960px',
nzWidth: '80vw',
nzContent: ConfigVersionComponent,
nzContentParams: {
configId,
Expand Down
2 changes: 1 addition & 1 deletion cosky-dashboard/src/app/components/role/role.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class RoleComponent implements OnInit {
const title = role ? `Edit Role [${role.name}]` : 'Add Role';
const drawerRef = this.drawerService.create<RoleEditorComponent, {}, string>({
nzTitle: title,
nzWidth: '40%',
nzWidth: '60vw',
nzContent: RoleEditorComponent,
nzContentParams: {
role
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class InstanceEditorService {

const drawerRef = this.drawerService.create<InstanceEditorComponent, { instance: ServiceInstanceDto }, string>({
nzTitle: `Managing service[${serviceId}] instances`,
nzWidth: '660px',
nzWidth: '60vw',
nzContent: InstanceEditorComponent,
nzContentParams: {
instance: editInstance
Expand Down
2 changes: 1 addition & 1 deletion cosky-dashboard/src/app/components/user/user.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class UserComponent implements OnInit {

const drawerRef = this.drawerService.create<UserAddComponent, {}, string>({
nzTitle: "Add User",
nzWidth: '40%',
nzWidth: '60vw',
nzContent: UserAddComponent
});
drawerRef.afterOpen.subscribe(() => {
Expand Down

0 comments on commit f23dfc7

Please sign in to comment.