|
|
@ -83,7 +83,9 @@ export class GfAdminTagComponent implements OnInit { |
|
|
return id === params['tagId']; |
|
|
return id === params['tagId']; |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
this.openUpdateTagDialog(tag); |
|
|
if (tag) { |
|
|
|
|
|
this.openUpdateTagDialog(tag); |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
this.router.navigate(['.'], { relativeTo: this.route }); |
|
|
this.router.navigate(['.'], { relativeTo: this.route }); |
|
|
} |
|
|
} |
|
|
@ -153,12 +155,7 @@ export class GfAdminTagComponent implements OnInit { |
|
|
GfCreateOrUpdateTagDialogComponent, |
|
|
GfCreateOrUpdateTagDialogComponent, |
|
|
CreateOrUpdateTagDialogParams |
|
|
CreateOrUpdateTagDialogParams |
|
|
>(GfCreateOrUpdateTagDialogComponent, { |
|
|
>(GfCreateOrUpdateTagDialogComponent, { |
|
|
data: { |
|
|
data: {} satisfies CreateOrUpdateTagDialogParams, |
|
|
tag: { |
|
|
|
|
|
id: null, |
|
|
|
|
|
name: null |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
height: this.deviceType === 'mobile' ? '98vh' : undefined, |
|
|
height: this.deviceType === 'mobile' ? '98vh' : undefined, |
|
|
width: this.deviceType === 'mobile' ? '100vw' : '50rem' |
|
|
width: this.deviceType === 'mobile' ? '100vw' : '50rem' |
|
|
}); |
|
|
}); |
|
|
@ -197,7 +194,7 @@ export class GfAdminTagComponent implements OnInit { |
|
|
id, |
|
|
id, |
|
|
name |
|
|
name |
|
|
} |
|
|
} |
|
|
}, |
|
|
} satisfies CreateOrUpdateTagDialogParams, |
|
|
height: this.deviceType === 'mobile' ? '98vh' : undefined, |
|
|
height: this.deviceType === 'mobile' ? '98vh' : undefined, |
|
|
width: this.deviceType === 'mobile' ? '100vw' : '50rem' |
|
|
width: this.deviceType === 'mobile' ? '100vw' : '50rem' |
|
|
}); |
|
|
}); |
|
|
|