summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/view-models/workspace/workspace-view-model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/view-models/workspace/workspace-view-model.ts')
-rw-r--r--catalog-ui/src/app/view-models/workspace/workspace-view-model.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/catalog-ui/src/app/view-models/workspace/workspace-view-model.ts b/catalog-ui/src/app/view-models/workspace/workspace-view-model.ts
index c72a5a471c..dad7b13e2a 100644
--- a/catalog-ui/src/app/view-models/workspace/workspace-view-model.ts
+++ b/catalog-ui/src/app/view-models/workspace/workspace-view-model.ts
@@ -282,7 +282,7 @@ export class WorkspaceViewModel {
break;
}
}
- this.$scope.component.archived = true;
+ this.$scope.component.isArchived = true;
this.deleteArchiveCache();
this.Notification.success({
@@ -301,8 +301,9 @@ export class WorkspaceViewModel {
message: this.$scope.component.name + ' ' + this.$filter('translate')("RESTORE_SUCCESS_MESSAGE_TEXT"),
title: this.$filter('translate')("RESTORE_SUCCESS_MESSAGE_TITLE")
});
+ this.$scope.reload(this.$scope.component);
});
- this.$scope.component.archived = false;
+ this.$scope.component.isArchived = false;
this.deleteArchiveCache();
}
@@ -637,7 +638,7 @@ export class WorkspaceViewModel {
this.$scope.checkDisableButton = (button: any):boolean => {
// Logic moved from html to component
- if (this.$scope.isCreateMode() || button.disabled || this.$scope.disabledButtons || !this.$scope.isValidForm || this.$scope.unsavedChanges || this.$scope.component.archived){
+ if (this.$scope.isCreateMode() || button.disabled || this.$scope.disabledButtons || !this.$scope.isValidForm || this.$scope.unsavedChanges || this.$scope.component.isArchived){
return true;
}