🎨 Minor UI update on collections

This commit is contained in:
Liyas Thomas
2019-10-22 21:27:48 +05:30
parent 4b3cee7f43
commit 3208cec882
6 changed files with 36 additions and 24 deletions

View File

@@ -23,8 +23,18 @@
</ul> </ul>
</div> </div>
<div slot="footer"> <div slot="footer">
<button @click="addNewFolder" v-if='!newFolder.hasOwnProperty("folderIndex")'>Add</button> <ul>
<button @click="saveFolder" v-if='newFolder.hasOwnProperty("folderIndex")'>Save</button> <li>
<button class="icon" @click="addNewFolder" v-if='!newFolder.hasOwnProperty("folderIndex")'>
<i class="material-icons">add</i>
<span>Create</span>
</button>
<button class="icon" @click="saveFolder" v-if='newFolder.hasOwnProperty("folderIndex")'>
<i class="material-icons">save</i>
<span>Save</span>
</button>
</li>
</ul>
</div> </div>
</modal> </modal>
</template> </template>

View File

@@ -11,13 +11,9 @@
<div class="flex-wrap"> <div class="flex-wrap">
<div> <div>
<button class="icon" @click="toggleShowChildren" v-show='!showChildren'>
<i class="material-icons">arrow_right</i>
</button>
<button class="icon" @click="toggleShowChildren" v-show='showChildren'>
<i class="material-icons">arrow_drop_down</i>
</button>
<button class="icon" @click="toggleShowChildren"> <button class="icon" @click="toggleShowChildren">
<i class="material-icons" v-show='!showChildren'>arrow_right</i>
<i class="material-icons" v-show='showChildren'>arrow_drop_down</i>
<i class="material-icons">folder</i> <i class="material-icons">folder</i>
<span>{{collection.name}}</span> <span>{{collection.name}}</span>
</button> </button>

View File

@@ -16,7 +16,7 @@
</ul> </ul>
</div> </div>
<div slot="body"> <div slot="body">
<textarea v-model='collectionJson'> <textarea v-model='collectionJson' rows="8">
</textarea> </textarea>
</div> </div>
<div slot="footer"> <div slot="footer">

View File

@@ -2,13 +2,9 @@
<div> <div>
<div class="flex-wrap"> <div class="flex-wrap">
<div> <div>
<button class="icon" @click="toggleShowChildren" v-show='!showChildren'>
<i class="material-icons">arrow_right</i>
</button>
<button class="icon" @click="toggleShowChildren" v-show='showChildren'>
<i class="material-icons">arrow_drop_down</i>
</button>
<button class="icon" @click="toggleShowChildren"> <button class="icon" @click="toggleShowChildren">
<i class="material-icons" v-show='!showChildren'>arrow_right</i>
<i class="material-icons" v-show='showChildren'>arrow_drop_down</i>
<i class="material-icons">folder_open</i> <i class="material-icons">folder_open</i>
<span>{{folder.name}}</span> <span>{{folder.name}}</span>
</button> </button>

View File

@@ -40,8 +40,18 @@
</ul> </ul>
</div> </div>
<div slot="footer"> <div slot="footer">
<button @click="addRequest" v-if='!request.hasOwnProperty("requestIndex")'>Add</button> <ul>
<button @click="saveRequest" v-if='request.hasOwnProperty("requestIndex")'>Save</button> <li>
<button class="icon" @click="addRequest" v-if='!request.hasOwnProperty("requestIndex")'>
<i class="material-icons">add</i>
<span>Create</span>
</button>
<button class="icon" @click="saveRequest" v-if='request.hasOwnProperty("requestIndex")'>
<i class="material-icons">save</i>
<span>Save</span>
</button>
</li>
</ul>
</div> </div>
</modal> </modal>
</div> </div>