MC App Rollback hide additional fields & add help text to modals

rancher/rancher#25512
This commit is contained in:
Westly Wright 2020-03-03 12:25:53 -07:00
parent 1d39e01581
commit e63e5082f6
No known key found for this signature in database
GPG Key ID: 4FAB3D8673DC54A3
4 changed files with 24 additions and 13 deletions

View File

@ -1,9 +1,14 @@
<h2>
{{t
"modalRollbackApp.title"
appName=model.displayName
}}
</h2>
<header class="header">
<h2>
{{t
"modalRollbackApp.title"
appName=model.displayName
}}
</h2>
<div class="pro-tip">
{{t "modalRollbackApp.protip"}}
</div>
</header>
{{#if loading}}
<i class="icon icon-spinner icon-spin"/> {{t "generic.loading"}}

View File

@ -6,7 +6,7 @@ import jsondiffpatch from 'jsondiffpatch';
import moment from 'moment';
import { notEmpty } from '@ember/object/computed';
const HIDDEN_FIELDS = ['digest'];
const HIDDEN_FIELDS = ['digest', 'created', 'createdTS', 'links', 'uuid', 'id', 'name'];
function sanitizeToRemoveHiddenKeys(config) {
HIDDEN_FIELDS.forEach((key) => {

View File

@ -1,9 +1,14 @@
<h2>
{{t
"modalRollbackApp.title"
appName=model.displayName
}}
</h2>
<header class="header">
<h2>
{{t
"modalRollbackApp.title"
appName=model.displayName
}}
</h2>
<div class="pro-tip">
{{t "modalRollbackApp.protip"}}
</div>
</header>
{{#if loading}}
<i class="icon icon-spinner icon-spin"/> {{t "generic.loading"}}

View File

@ -7774,6 +7774,7 @@ modalRollbackService:
modalRollbackApp:
title: 'Rollback "{appName}"'
protip: 'The "Rollback" action will create a new revision with the same configuration as the selected revision.'
action: Rollback
current:
label: Current Revision