mirror of https://github.com/rancher/ui.git
fix cluster templates table not updating when revision is deleted
This commit is contained in:
parent
3ca09b0d07
commit
c580bcc753
|
|
@ -44,6 +44,7 @@ export default Resource.extend({
|
|||
newRevision() {
|
||||
this.router.transitionTo('global-admin.cluster-templates.new-revision', this.clusterTemplateId, { queryParams: { revision: this.id } });
|
||||
},
|
||||
|
||||
setDefault() {
|
||||
const { clusterTemplate } = this;
|
||||
const successTitle = this.intl.t('action.setDefaultRevision.success.title');
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ export default Component.extend({
|
|||
sortBy: 'displayName',
|
||||
headers: HEADERS,
|
||||
|
||||
rows: computed('clusterTemplateRevisions.each.{clusterTempalte}', 'clusterTemplates.@each.{defaultRevisionId,revisionsCount,revisions}', function() {
|
||||
rows: computed('clusterTemplateRevisions.@each.{id,state}', function() {
|
||||
const { clusterTemplateRevisions = [] } = this;
|
||||
|
||||
return clusterTemplateRevisions.sortBy('displayName').filter((ctr) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue