Fixed new library button hiding and not coming back
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
</v-expansion-panel-content>
|
||||
</v-expansion-panel>
|
||||
<v-btn
|
||||
v-show="expandedLibrary === null"
|
||||
v-show="noLibrariesExpanded"
|
||||
v-if="editMode"
|
||||
flat
|
||||
color="primary"
|
||||
@@ -116,6 +116,16 @@ export default {
|
||||
return tier && tier.paidBenefits;
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
noLibrariesExpanded(){
|
||||
if (!this.expandedLibrary) return true;
|
||||
let noneExpanded = true;
|
||||
this.expandedLibrary.forEach(lib => {
|
||||
if(lib) noneExpanded = false;
|
||||
});
|
||||
return noneExpanded;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
insertLibrary(){
|
||||
if (this.paidBenefits){
|
||||
|
||||
Reference in New Issue
Block a user