Fix updatedAt and deletedAt labels not shown in admin applications
This commit is contained in:
@@ -187,12 +187,17 @@ export default {
|
||||
}
|
||||
|
||||
this.$SystemAPI.applicationUpdate(application)
|
||||
.then(() => {
|
||||
.then(application => {
|
||||
this.initialApplicationState = new system.Application({
|
||||
...application,
|
||||
unify: this.initialApplicationState.unify,
|
||||
})
|
||||
|
||||
this.application = new system.Application({
|
||||
...application,
|
||||
unify: this.application.unify,
|
||||
})
|
||||
|
||||
this.animateSuccess('info')
|
||||
this.toastSuccess(this.$t('notification:application.update.success'))
|
||||
})
|
||||
|
||||
@@ -4,6 +4,7 @@ import { IsOf } from '../../guards'
|
||||
interface PartialApplication extends Partial<Omit<Application, 'createdAt' | 'updatedAt' | 'deletedAt' | 'lastUsedAt'>> {
|
||||
createdAt?: string|number|Date;
|
||||
updatedAt?: string|number|Date;
|
||||
deletedAt?: string|number|Date;
|
||||
}
|
||||
|
||||
interface Unify {
|
||||
@@ -34,6 +35,9 @@ export class Application {
|
||||
public canGrant: boolean = true;
|
||||
public canUpdateApplication: boolean = true;
|
||||
public canDeleteApplication: boolean = true;
|
||||
public createdAt?: Date = undefined
|
||||
public updatedAt?: Date = undefined
|
||||
public deletedAt?: Date = undefined
|
||||
|
||||
constructor (r?: PartialApplication) {
|
||||
this.apply(r)
|
||||
@@ -42,6 +46,7 @@ export class Application {
|
||||
apply (r?: PartialApplication): void {
|
||||
Apply(this, r, CortezaID, 'applicationID')
|
||||
Apply(this, r, String, 'name')
|
||||
Apply(this, r, ISO8601Date, 'createdAt', 'updatedAt', 'deletedAt')
|
||||
Apply(this, r, Number, 'weight', 'ownerID')
|
||||
Apply(this, r, Boolean, 'enabled', 'canGrant', 'canUpdateApplication', 'canDeleteApplication')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user