Commit 4784257e authored by Richard Bowman's avatar Richard Bowman 🔬
Browse files

Added another button

parent 4b7d6ede
Loading
Loading
Loading
Loading
+20 −9
Original line number Diff line number Diff line
@@ -67,16 +67,24 @@
        >
        </taskSubmitter>
      </div>
    </form>
      
    <div v-if="'flatten_lens_shading_table' in recalibrationLinks" class="uk-margin-small">
      <button
          class="uk-button uk-button-danger uk-form-small uk-float-right uk-margin-small uk-width-1-1"
        class="uk-button uk-button-danger uk-form-small uk-float-right uk-margin-small uk-margin-remove-bottom uk-width-1-1"
        @click="flattenLensShadingTableRequest"
      >
        Disable flat-field correction
      </button>
    </div>
    </form>
    <div v-if="'delete_lens_shading_table' in recalibrationLinks" class="uk-margin-small uk-margin-remove-top">
      <button
        class="uk-button uk-button-danger uk-form-small uk-float-right uk-margin-small uk-width-1-1"
        @click="deleteLensShadingTableRequest"
      >
        Adaptive flat-field correction
      </button>
    </div>
  </div>
</template>

@@ -187,6 +195,9 @@ export default {

    flattenLensShadingTableRequest: function() {
      axios.post(this.recalibrationLinks.flatten_lens_shading_table.href)
    },
    deleteLensShadingTableRequest: function() {
      axios.post(this.recalibrationLinks.delete_lens_shading_table.href)
    }
  }
};