Skip to content

Commit

Permalink
feat: hide container number (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
stoically committed Nov 2, 2019
1 parent 728bdc9 commit 0142cb3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@
"optionsGeneralContainerNumberReuseNumbers": {
"message": "Reuse available numbers"
},
"optionsGeneralContainerNumberHide": {
"message": "Hide number"
},
"optionsGeneralContainerRemoval": {
"message": "Delete no longer needed Temporary Containers"
},
Expand Down
5 changes: 4 additions & 1 deletion src/background/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class Container {


getContainerNameIconColor(url) {
let tempContainerNumber;
let tempContainerNumber = '';
if (this.pref.container.numberMode.startsWith('keep')) {
this.storage.local.tempContainerCounter++;
tempContainerNumber = this.storage.local.tempContainerCounter;
Expand All @@ -229,6 +229,9 @@ class Container {
.replace('%domain%', '');
}
containerName = `${containerName}${tempContainerNumber}`;
if (!containerName) {
containerName = ' ';
}

let containerColor = this.pref.container.color;
if (this.pref.container.colorRandom) {
Expand Down
3 changes: 3 additions & 0 deletions src/ui/components/general.vue
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ export default {
<option value="reuse">
{{ t('optionsGeneralContainerNumberReuseNumbers') }}
</option>
<option value="hide">
{{ t('optionsGeneralContainerNumberHide') }}
</option>
</select>
</div>
<div class="field">
Expand Down

0 comments on commit 0142cb3

Please sign in to comment.