Skip to content

Commit

Permalink
[webui] Highlight elements in Kiwi Editor
Browse files Browse the repository at this point in the history
We highlighted the repositories and packages that are not valid.
  • Loading branch information
David Kang committed Oct 11, 2017
1 parent e1c8d38 commit 31d1a63
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ function closeDialog() {
}

fields.find(".ui-state-error").addClass('hidden');
fields.find('.kiwi_list_item').removeClass('has-error');
dialog.removeClass('new_element');

if (!canSave) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,9 @@
}

small { margin: 0; }

&.has-error {
a { color: #c00; }
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.nested-fields.kiwi_fields
.kiwi_list_item
%div{ class: "kiwi_list_item #{'has-error' if f.object.errors.present?}"}
%span
= link_to '#', class: "package_edit kiwi_element_name" do
= f.object.name
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.nested-fields.kiwi_fields
.kiwi_list_item
%div{ class: "kiwi_list_item #{'has-error' if f.object.errors.present?}"}
%span
= link_to f.object.name, '#', class: 'repository_edit kiwi_element_name'
%span.kiwi_actions.hidden
Expand Down

0 comments on commit 31d1a63

Please sign in to comment.