Add design page

This commit is contained in:
Anton 2024-01-19 10:52:07 +01:00
parent 1b7fcf804d
commit ed2a54229a
4 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,4 @@
class DesignElementsController < ApplicationController
def index
end
end

View file

@ -0,0 +1,17 @@
export default {
mounted() {
$(this.$refs.modal).modal('show');
$(this.$refs.modal).on('hidden.bs.modal', () => {
this.$emit('close');
});
},
beforeUnmount() {
$(this.$refs.modal).modal('hide');
},
methods: {
close() {
this.$emit('close');
$(this.$refs.modal).modal('hide');
}
},
}

View file

View file

@ -1018,4 +1018,8 @@ Rails.application.routes.draw do
end
resources :gene_sequence_assets, only: %i(new create edit update)
if Rails.env.development? || ENV['ENABLE_DESIGN_ELEMENTS'] == 'true'
resources :design_elements, only: %i(index)
end
end