Irregular update 08/02 (#378)

This commit is contained in:
KaHim Chan 2022-02-08 23:45:59 +08:00 committed by GitHub
parent 0161a6063a
commit 7230ecb080
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 617 additions and 472 deletions

View file

@ -272,7 +272,7 @@ const app = new Vue({
},
methods: {
songLinkShare(amUrl) {
notyf.open({type: "info", message: "Getting song.link share URL..."})
notyf.open({type: "info", message: app.getLz('term.song.link.generate')})
let self = this
httpRequest = new XMLHttpRequest();
httpRequest.open('GET', `https://api.song.link/v1-alpha.1/links?url=${amUrl}&userCountry=US`, true);
@ -285,7 +285,7 @@ const app = new Vue({
self.copyToClipboard(response.pageUrl)
} else {
console.log('There was a problem with the request.');
notyf.error("There was a problem with the request.")
notyf.error(app.getLz('term.requestError'))
}
}
}
@ -2284,7 +2284,7 @@ const app = new Vue({
this.mk.addToLibrary(id).then((data) => {
self.getLibrarySongsFull(true)
})
notyf.success('Added to library.');
notyf.success(app.getLz('action.addToLibrary.success'));
},
removeFromLibrary(kind, id) {
let self = this
@ -2296,7 +2296,7 @@ const app = new Vue({
}).then((data) => {
self.getLibrarySongsFull(true)
})
notyf.success('Removed from library.')
notyf.success(app.getLz('action.removeFromLibrary.success'))
},
async losslessBadge() {