This commit is contained in:
2021-07-02 18:14:28 +00:00
parent a03a75132c
commit cd02d61bc7
3 changed files with 44 additions and 9 deletions

View File

@@ -419,10 +419,18 @@
serial picker / entry
</v-card-text>
<v-card-actions>
<v-spacer />
<v-btn text @click="serialDialog = false" color="primary">{{
$ay.t("Close")
$ay.t("Cancel")
}}</v-btn>
<v-spacer></v-spacer>
<!-- :disabled="selectedPartAssembly == null" -->
<v-btn
color="primary"
text
@click="addSelectedSerials()"
class="ml-4"
>{{ $ay.t("Add") }}</v-btn
>
</v-card-actions>
</v-card>
</v-dialog>
@@ -515,13 +523,17 @@ export default {
return;
}
let res = await window.$gz.api.get(`part/serials/${partId}`);
if(res.error){
//display info box error here, see recent code where did that forget at the moment because .... you know why :)
}else{
console.log(res);
this.serialDialog = true;
if (res.error) {
window.$gz.eventBus.$emit(
"notify-warning",
window.$gz.errorHandler.errorToString(res, this)
);
} else {
this.serialDialog = true;
}
},
addSelectedSerials() {
},
async addPartAssembly() {
let res = await window.$gz.api.get(