Merge branch 'reload-background-tab' into 'v3'
Reload background detect settings when tab opened Closes #551 See merge request openflexure/openflexure-microscope-server!385
This commit is contained in:
commit
fd70c8a558
1 changed files with 7 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="uk-padding-small">
|
<div class="uk-padding-small" v-observe-visibility="visibilityChanged">
|
||||||
<div>
|
<div>
|
||||||
<ul uk-accordion="multiple: true">
|
<ul uk-accordion="multiple: true">
|
||||||
<li>
|
<li>
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="uk-margin">
|
<div class="uk-margin">
|
||||||
<!--Once status is read this should be disabled id not ready..-->
|
<!--Once status is read this should be disabled if not ready..-->
|
||||||
<action-button
|
<action-button
|
||||||
thing="camera"
|
thing="camera"
|
||||||
action="image_is_sample"
|
action="image_is_sample"
|
||||||
|
|
@ -71,6 +71,11 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
visibilityChanged(isVisible) {
|
||||||
|
if (isVisible) {
|
||||||
|
this.readSettings();
|
||||||
|
}
|
||||||
|
},
|
||||||
alertBackgroundSet() {
|
alertBackgroundSet() {
|
||||||
this.modalNotify(`Background image has been updated`);
|
this.modalNotify(`Background image has been updated`);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue