Merge pull request #36 from cfajardo/add-application-image

Add application image
This commit is contained in:
ReenigneArcher
2022-02-06 16:44:43 -05:00
committed by GitHub
8 changed files with 69 additions and 5 deletions

View File

@@ -166,6 +166,21 @@
If not set, Sunshine will default to the parent directory of the command
</div>
</div>
<!-- Image path -->
<div class="mb-3">
<label for="appImagePath" class="form-label">Image</label>
<input
type="text"
class="form-control monospace"
id="appImagePath"
aria-describedby="appImagePathHelp"
v-model="editForm['image-path']"
/>
<div id="appImagePathHelp" class="form-text">
Application icon/picture/image path that will be sent to client. Image must be a PNG file.
If not set, Sunshine will send default box image.
</div>
</div>
<!--buttons-->
<div class="d-flex">
<button @click="showEditForm = false" class="btn btn-secondary m-2">
@@ -208,6 +223,7 @@
index: -1,
"prep-cmd": [],
detached: [],
"image-path": ""
};
this.editForm.index = -1;
this.showEditForm = true;
@@ -238,6 +254,7 @@
});
},
save() {
this.editForm["image-path"] = this.editForm["image-path"].toString().replace(/"/g, '');
fetch("/api/apps", {
method: "POST",
body: JSON.stringify(this.editForm),
@@ -257,4 +274,4 @@
.monospace {
font-family: monospace;
}
</style>
</style>