mirror of
https://github.com/beestat/app.git
synced 2025-06-23 15:30:43 -04:00
Disabled create/update/delete floor plan buttons when they are clicked
This commit is contained in:
parent
1828852f48
commit
4fa7651189
@ -188,6 +188,11 @@ beestat.component.modal.create_floor_plan.prototype.get_buttons_ = function() {
|
|||||||
.set_text_color('#fff')
|
.set_text_color('#fff')
|
||||||
.set_text('Create Floor Plan')
|
.set_text('Create Floor Plan')
|
||||||
.addEventListener('click', function() {
|
.addEventListener('click', function() {
|
||||||
|
this
|
||||||
|
.set_background_color(beestat.style.color.gray.base)
|
||||||
|
.set_background_hover_color()
|
||||||
|
.removeEventListener('click');
|
||||||
|
|
||||||
// Fail if there are errors.
|
// Fail if there are errors.
|
||||||
if (
|
if (
|
||||||
self.state_.error.floor_count === true ||
|
self.state_.error.floor_count === true ||
|
||||||
|
@ -59,6 +59,11 @@ beestat.component.modal.delete_floor_plan.prototype.get_buttons_ = function() {
|
|||||||
.set_text_color('#fff')
|
.set_text_color('#fff')
|
||||||
.set_text('Delete Floor Plan')
|
.set_text('Delete Floor Plan')
|
||||||
.addEventListener('click', function() {
|
.addEventListener('click', function() {
|
||||||
|
this
|
||||||
|
.set_background_color(beestat.style.color.gray.base)
|
||||||
|
.set_background_hover_color()
|
||||||
|
.removeEventListener('click');
|
||||||
|
|
||||||
new beestat.api()
|
new beestat.api()
|
||||||
.add_call(
|
.add_call(
|
||||||
'floor_plan',
|
'floor_plan',
|
||||||
|
@ -148,6 +148,11 @@ beestat.component.modal.update_floor_plan.prototype.get_buttons_ = function() {
|
|||||||
.set_text_color('#fff')
|
.set_text_color('#fff')
|
||||||
.set_text('Update Floor Plan')
|
.set_text('Update Floor Plan')
|
||||||
.addEventListener('click', function() {
|
.addEventListener('click', function() {
|
||||||
|
this
|
||||||
|
.set_background_color(beestat.style.color.gray.base)
|
||||||
|
.set_background_hover_color()
|
||||||
|
.removeEventListener('click');
|
||||||
|
|
||||||
// Fail if there are errors.
|
// Fail if there are errors.
|
||||||
if (
|
if (
|
||||||
self.state_.error.name === true
|
self.state_.error.name === true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user