force modified icon in tree list & tab bar
This commit is contained in:
parent
e1a701c79a
commit
10bba03843
|
@ -26,11 +26,18 @@ export default {
|
|||
required: false,
|
||||
default: false,
|
||||
},
|
||||
forceModifiedIcon: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
changedIcon() {
|
||||
const suffix = this.file.staged && !this.showStagedIcon ? '-solid' : '';
|
||||
return this.file.tempFile ? `file-addition${suffix}` : `file-modified${suffix}`;
|
||||
return this.file.tempFile && !this.forceModifiedIcon
|
||||
? `file-addition${suffix}`
|
||||
: `file-modified${suffix}`;
|
||||
},
|
||||
stagedIcon() {
|
||||
return `${this.changedIcon}-solid`;
|
||||
|
|
|
@ -106,7 +106,8 @@ export default {
|
|||
:file="file"
|
||||
:show-tooltip="true"
|
||||
:show-staged-icon="true"
|
||||
class="prepend-top-5 pull-right"
|
||||
:force-modified-icon="true"
|
||||
class="pull-right"
|
||||
/>
|
||||
</span>
|
||||
<new-dropdown
|
||||
|
|
|
@ -84,6 +84,7 @@ export default {
|
|||
<changed-file-icon
|
||||
v-else
|
||||
:file="tab"
|
||||
:force-modified-icon="true"
|
||||
/>
|
||||
</button>
|
||||
|
||||
|
|
Loading…
Reference in New Issue