Add profile name field to import

This commit is contained in:
Kevin Thomas
2022-04-17 15:38:17 -07:00
parent 022412473f
commit da40516e10
5 changed files with 14 additions and 6 deletions

View File

@@ -16,6 +16,7 @@ export default {
isImportValid: false,
exportDialog: false,
importedProfile: null,
importedProfileName: '',
exportedProfile: {},
infoSnackbar: false,
infoSnackbarText: '',
@@ -458,7 +459,7 @@ export default {
const profileJSON = JSON.parse(fileContents)
this.$http.post('/profiles/import', {
name: profileJSON.name,
name: this.importedProfileName,
isTimerEnabled: profileJSON.isTimerEnabled,
duration: profileJSON.duration,
volume: profileJSON.volume,