|
|
@@ -34,7 +34,7 @@ document.addEventListener("alpine:init", () => {
|
|
|
currentTab: null, // Current active tab info
|
|
|
isCurrentTabYoutube: false, // Whether current tab is YouTube
|
|
|
isCurrentTabChannelPage: false, // Whether current tab is YouTube videos page
|
|
|
- addCurrentPageButtonText: "Add Current Page", // Button text
|
|
|
+ addCurrentPageButtonText: "Add Cur. Page", // Button text
|
|
|
|
|
|
// Save channel properties
|
|
|
selectedCategory: "FOR BOTH", // Currently selected category
|
|
|
@@ -271,11 +271,11 @@ document.addEventListener("alpine:init", () => {
|
|
|
|
|
|
updateAddCurrentPageButtonText() {
|
|
|
if (!this.currentTab) {
|
|
|
- this.addCurrentPageButtonText = "Unable to get current page";
|
|
|
+ this.addCurrentPageButtonText = "Unable to get page";
|
|
|
} else if (!this.isCurrentTabYoutube) {
|
|
|
- this.addCurrentPageButtonText = "Add Current Page (YouTube only)";
|
|
|
+ this.addCurrentPageButtonText = "Add Cur. Page (YT only)";
|
|
|
} else {
|
|
|
- this.addCurrentPageButtonText = "Add Current Page to Playlist";
|
|
|
+ this.addCurrentPageButtonText = "Add Cur. Page";
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -1325,6 +1325,12 @@ document.addEventListener("alpine:init", () => {
|
|
|
},
|
|
|
},
|
|
|
|
|
|
+ addCurrentPageContainer: {
|
|
|
+ ["x-show"]() {
|
|
|
+ return this.currentView === "playlist";
|
|
|
+ },
|
|
|
+ },
|
|
|
+
|
|
|
playlistViewContainer: {
|
|
|
["x-show"]() {
|
|
|
return this.currentView === "playlist";
|