Fix send item display name.

This commit is contained in:
Kasen IO 2020-05-22 23:37:07 -04:00
parent 5d75c177be
commit 172cfa9527
3 changed files with 27 additions and 24 deletions

View file

@ -145,7 +145,7 @@ function loadSettings() {
function pushReceivedItemToQueue(senderUUID, senderName, type, name, url) {
var packageRequest = {
"sender": senderUUID,
"senderUUID": senderUUID,
"senderName": senderName,
"data": {
"type": type,

View file

@ -524,7 +524,8 @@
<v-card-title class="headline">Receiving Item</v-card-title>
<v-card-text>
{{$store.state.receiveDialog.data.user}} is sending you an item.
{{$store.state.receiveDialog.data.userDisplayName}} sent you an item. <br />
User UUID: {{$store.state.receiveDialog.data.userUUID}}
</v-card-text>
<v-form
@ -739,26 +740,26 @@ export default {
show: false,
data: {
receivingItemQueue: [
// {
// "sender": "SENDERUUIDLOL",
// "senderName": "WHOISTHIS1",
// "data": {
// "type": "script",
// "name": "This Is A Real Script",
// "url": "https://butwhythough.com/lol.js",
// "uuid": "This Is A Real Script",
// }
// },
// {
// "sender": "TEST2SENDERUUID",
// "senderName": "WHOTHISBE2",
// "data": {
// "type": "script",
// "name": "REALLYLONGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG",
// "url": "https://butwhythough.com/looool.js",
// "uuid": "REALLYLONNGGGGGGGG",
// }
// }
{
"senderUUID": "SENDERUUIDLOL",
"senderName": "WHOISTHIS1",
"data": {
"type": "script",
"name": "This Is A Real Script",
"url": "https://butwhythough.com/lol.js",
"uuid": "This Is A Real Script",
}
},
{
"senderUUID": "TEST2SENDERUUID",
"senderName": "WHOTHISBE2",
"data": {
"type": "script",
"name": "REALLYLONGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG",
"url": "https://butwhythough.com/looool.js",
"uuid": "REALLYLONNGGGGGGGG",
}
}
],
},
},
@ -981,7 +982,8 @@ export default {
acceptReceivingItem: function(data) {
this.removeReceivingItem(data.data.uuid);
this.receiveDialogStore.data.user = data.sender;
this.receiveDialogStore.data.userUUID = data.senderUUID;
this.receiveDialogStore.data.userDisplayName = data.senderName;
this.receiveDialogStore.data.type = data.data.type;
this.receiveDialogStore.data.name = data.data.name;
this.receiveDialogStore.data.url = data.data.url;

View file

@ -264,7 +264,8 @@ export const store = new Vuex.Store({
show: false,
valid: false,
data: {
"user": null,
"userUUID": null,
"userDisplayName": null,
"name": null,
"folder": null,
"type": null,