This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user