Skip to content

Commit

Permalink
Merge pull request #7 from ryu-bu/david-save-issue
Browse files Browse the repository at this point in the history
David save issue
  • Loading branch information
rkrishnasanka authored Nov 8, 2021
2 parents 7d9f137 + 3ee9a5f commit bdc5a35
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
Binary file added src/assets/NeptuneLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/views/dashboard/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class="pt-0"
>
<v-btn color="success" v-on:click="savefile"><v-icon small left light>mdi-content-save</v-icon> Save</v-btn>
<v-btn color="info" @click="compiledialog = true"><v-icon small left light>mdi-play</v-icon> Compile</v-btn>
<v-btn color="info" v-on:click="savefile(), compiledialog = true"><v-icon small left light>mdi-play</v-icon> Save and Compile</v-btn>
<v-btn color="error" v-on:click="deletefile"><v-icon small left light>mdi-delete</v-icon> Delete</v-btn>
<v-btn color="secondary" v-on:click="downloadfile"><v-icon small left light>mdi-cloud-download</v-icon> Download</v-btn>
<v-btn color="secondary" v-on:click="uploadfile"><v-icon small left light>mdi-cloud-upload</v-icon> Upload</v-btn>
Expand Down Expand Up @@ -280,7 +280,7 @@ export default {
createfile: function(event) {
console.log("TEST");
},
savefile: function(event) {
savefile() {
let self = this
self.isloading = true
console.log("save the file", this.code);
Expand Down
19 changes: 17 additions & 2 deletions src/views/dashboard/Solutions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@
document.body.appendChild(link)
link.click()
})
},
openpreview(fid){
alert(fid)
Expand Down Expand Up @@ -218,7 +217,23 @@
}
},
downloadjobfiles(jid){
alert(jid)
// alert(jid);
for (let fid of this.jobobjects[jid].files){
axios.get('/api/v1/file', {
params: {
id: fid
}
})
.then((response) => {
var fileData = response.data;
console.log(fileData)
this.downloadfile(fileData);
})
.catch((error) => {
console.log(error)
})
}
},
complete (index) {
this.list[index] = !this.list[index]
Expand Down
2 changes: 1 addition & 1 deletion src/views/dashboard/components/core/Drawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
},
data: () => ({
logo: './images/NeptuneLogo.png',
logo: require('@/assets/NeptuneLogo.png'),
items: [
{
icon: 'mdi-view-dashboard',
Expand Down

0 comments on commit bdc5a35

Please sign in to comment.