@@ -18,9 +23,7 @@
{{ track.index }}
|
-
- {{ track.filename }}
- |
+ {{ showFullPath ? track.fullPath : track.filename }} |
{{ $bytesPretty(track.size) }}
|
@@ -47,7 +50,8 @@ export default {
data() {
return {
tracks: null,
- audioFiles: null
+ audioFiles: null,
+ showFullPath: false
}
},
watch: {
diff --git a/client/components/modals/libraries/EditLibrary.vue b/client/components/modals/libraries/EditLibrary.vue
index 9ec07fa9..df369905 100644
--- a/client/components/modals/libraries/EditLibrary.vue
+++ b/client/components/modals/libraries/EditLibrary.vue
@@ -14,7 +14,7 @@
folder
- close
+ close
No folders
Browse for Folder
@@ -22,7 +22,7 @@
-
{{ library ? 'Update Library' : 'Create Library' }}
+
{{ library ? 'Update Library' : 'Create Library' }}
@@ -43,8 +43,7 @@ export default {
return {
name: '',
folders: [],
- showDirectoryPicker: false,
- newLibraryName: ''
+ showDirectoryPicker: false
}
},
computed: {
@@ -54,6 +53,18 @@ export default {
},
folderPaths() {
return this.folders.map((f) => f.fullPath)
+ },
+ disableSubmit() {
+ if (!this.library) {
+ return false
+ }
+ var newfolderpaths = this.folderPaths.join(',')
+ var origfolderpaths = this.library.folders.map((f) => f.fullPath).join(',')
+ console.log(newfolderpaths)
+ console.log(origfolderpaths)
+ console.log(newfolderpaths === origfolderpaths)
+
+ return newfolderpaths === origfolderpaths && this.name === this.library.name
}
},
methods: {
diff --git a/client/components/modals/libraries/FolderChooser.vue b/client/components/modals/libraries/FolderChooser.vue
index bf9ed9fd..3cda9fae 100644
--- a/client/components/modals/libraries/FolderChooser.vue
+++ b/client/components/modals/libraries/FolderChooser.vue
@@ -30,11 +30,12 @@
Note: folders already mapped will not be shown
-
-
diff --git a/client/components/tables/OtherFilesTable.vue b/client/components/tables/OtherFilesTable.vue
index 1dbdf520..59d27490 100644
--- a/client/components/tables/OtherFilesTable.vue
+++ b/client/components/tables/OtherFilesTable.vue
@@ -2,11 +2,14 @@
Other Files
-
{{ files.length }}
+
+ {{ files.length }}
+
+
Full Path
expand_more
@@ -15,13 +18,13 @@
- Path |
- Filetype |
+ Path |
+ Filetype |
- {{ file.path }}
+ {{ showFullPath ? file.fullPath : file.path }}
|
{{ file.filetype }}
@@ -45,7 +48,8 @@ export default {
},
data() {
return {
- showFiles: false
+ showFiles: false,
+ showFullPath: false
}
},
computed: {},
diff --git a/client/components/tables/TracksTable.vue b/client/components/tables/TracksTable.vue
index 8f67c85f..8caaaad8 100644
--- a/client/components/tables/TracksTable.vue
+++ b/client/components/tables/TracksTable.vue
@@ -2,8 +2,12 @@
Audio Tracks
- {{ tracks.length }}
+
+ {{ tracks.length }}
+
+
+ Full Path
Manage Tracks
@@ -15,18 +19,18 @@
- # |
+ # |
Filename |
- Size |
- Duration |
- Download |
+ Size |
+ Duration |
+ Download |
{{ track.index }}
|
- {{ track.filename }} |
+ {{ showFullPath ? track.fullPath : track.filename }} |
{{ $bytesPretty(track.size) }}
|
@@ -58,7 +62,8 @@ export default {
},
data() {
return {
- showTracks: false
+ showTracks: false,
+ showFullPath: false
}
},
computed: {
diff --git a/client/components/ui/Btn.vue b/client/components/ui/Btn.vue
index adb4dfe1..e055a58f 100644
--- a/client/components/ui/Btn.vue
+++ b/client/components/ui/Btn.vue
@@ -56,6 +56,9 @@ export default {
if (this.paddingX !== undefined) {
list.push(`px-${this.paddingX}`)
}
+ if (this.disabled) {
+ list.push('cursor-not-allowed')
+ }
return list
}
},
diff --git a/client/components/ui/Dropdown.vue b/client/components/ui/Dropdown.vue
index 01c0966e..b4eac2a2 100644
--- a/client/components/ui/Dropdown.vue
+++ b/client/components/ui/Dropdown.vue
@@ -1,7 +1,7 @@
|