|
34 | 34 | <template v-slot:default="rowScope"> |
35 | 35 | <div> |
36 | 36 | <div class="cly-vue-remote-config-conditions-drawer__margin-bottom"> |
37 | | - <cly-status-tag v-if="rowScope.row.status==='Stopped'" :text="i18n('remote-config.parameter.stopped')" color="red"></cly-status-tag> |
| 37 | + <cly-status-tag v-if="rowScope.row.status==='Stopped'" :text="i18n('remote-config.parameter.disabled')" color="red"></cly-status-tag> |
38 | 38 | <cly-status-tag v-else-if="rowScope.row.status==='Expired'" :text="i18n('remote-config.parameter.expired')" color="yellow"></cly-status-tag> |
39 | | - <cly-status-tag v-else :text="i18n('remote-config.parameter.running')" color="blue"></cly-status-tag> |
| 39 | + <cly-status-tag v-else :text="i18n('remote-config.parameter.enabled')" color="blue"></cly-status-tag> |
40 | 40 | </div> |
41 | 41 | <div class="color-cool-gray-40 text-small" v-if="rowScope.row.expiry_dttm"> {{i18n('remote-config.expire.date')}} {{getDate(rowScope.row.expiry_dttm)}}</div> |
42 | 42 | </div> |
|
62 | 62 | </el-table-column> |
63 | 63 | <el-table-column min-width="160" v-if="hasUpdateRight || hasDeleteRight" type="options"> |
64 | 64 | <template v-slot="rowScope"> |
65 | | - <cly-more-options v-if="rowScope.row.hover && rowScope.row.editable" size="small" @command="handleCommand($event, scope, rowScope.row)"> |
66 | | - <el-dropdown-item v-if="hasUpdateRight" command="edit">{{i18n('common.edit')}}</el-dropdown-item> |
67 | | - <el-dropdown-item v-if="hasDeleteRight" command="remove">{{i18n('common.delete')}}</el-dropdown-item> |
| 65 | + <cly-more-options |
| 66 | + v-if="rowScope.row.hover" |
| 67 | + size="small" |
| 68 | + v-tooltip.left="rowScope.row.editable ? '' : i18n('remote-config.parameter.action-tooltip-content')" |
| 69 | + @command="handleCommand($event, scope, rowScope.row)"> |
| 70 | + <el-dropdown-item v-if="hasUpdateRight && rowScope.row.editable" command="edit">{{i18n('common.edit')}}</el-dropdown-item> |
| 71 | + <el-dropdown-item v-if="hasDeleteRight && rowScope.row.editable" command="remove">{{i18n('common.delete')}}</el-dropdown-item> |
68 | 72 | </cly-more-options> |
69 | 73 | </template> |
70 | 74 | </el-table-column> |
71 | 75 | <el-table-column v-if="hasUpdateRight" min-width="110"> |
72 | 76 | <template v-slot="rowScope"> |
73 | 77 | <div v-if="rowScope.row.hover && rowScope.row.editable"> |
74 | | - <el-button v-if="rowScope.row.status==='Stopped' || rowScope.row.status==='Expired'" @click="startParameter(rowScope.row)" size="small" icon="el-icon-remove">{{i18n('remote-config.start')}} |
| 78 | + <el-button v-if="rowScope.row.status==='Stopped' || rowScope.row.status==='Expired'" @click="startParameter(rowScope.row)" size="small" icon="el-icon-remove">{{i18n('remote-config.enable')}} |
75 | 79 | </el-button> |
76 | | - <el-button v-else @click="stopParameter(rowScope.row)" size="small" icon="el-icon-remove">{{i18n('remote-config.stop')}} |
| 80 | + <el-button v-else @click="stopParameter(rowScope.row)" size="small" icon="el-icon-remove">{{i18n('remote-config.disable')}} |
77 | 81 | </el-button> |
78 | 82 | </div> |
79 | 83 | </template> |
|
0 commit comments