diff options
Diffstat (limited to 'extensions/TrackingFlags/template/en/default')
-rw-r--r-- | extensions/TrackingFlags/template/en/default/hook/global/user-error-errors.html.tmpl | 5 | ||||
-rw-r--r-- | extensions/TrackingFlags/template/en/default/pages/tracking_flags_admin_edit.html.tmpl | 4 |
2 files changed, 2 insertions, 7 deletions
diff --git a/extensions/TrackingFlags/template/en/default/hook/global/user-error-errors.html.tmpl b/extensions/TrackingFlags/template/en/default/hook/global/user-error-errors.html.tmpl index 13f9980dc..7987c7d8d 100644 --- a/extensions/TrackingFlags/template/en/default/hook/global/user-error-errors.html.tmpl +++ b/extensions/TrackingFlags/template/en/default/hook/global/user-error-errors.html.tmpl @@ -54,11 +54,6 @@ [% title = "Invalid flag type" %] The flag type '[% type FILTER html %]' is invalid. -[% ELSIF error == "tracking_flag_has_activity" %] - [% title = "Tracking Flag Has Activity" %] - The tracking flag '[% flag.name FILTER html %]' cannot be deleted because - it has recorded activity. - [% ELSIF error == "tracking_flag_has_contents" %] [% title = "Tracking Flag Has Contents" %] The tracking flag '[% flag.name FILTER html %]' cannot be deleted because diff --git a/extensions/TrackingFlags/template/en/default/pages/tracking_flags_admin_edit.html.tmpl b/extensions/TrackingFlags/template/en/default/pages/tracking_flags_admin_edit.html.tmpl index 97a9e5a02..85915dbde 100644 --- a/extensions/TrackingFlags/template/en/default/pages/tracking_flags_admin_edit.html.tmpl +++ b/extensions/TrackingFlags/template/en/default/pages/tracking_flags_admin_edit.html.tmpl @@ -174,9 +174,9 @@ var selected_components = [ <div> <input type="submit" name="submit" id="submit" value="[% mode == 'edit' ? 'Save Changes' : 'Add' %]"> - [% IF can_delete %] + [% IF !flag.bug_count %] <input type="hidden" name="delete" id="delete" value=""> - <input type="submit" value="Delete" + <input type="submit" value="Delete Flag [% IF flag.activity_count %] and Activity[% END %]" onclick="return delete_confirm('[% flag.name FILTER js FILTER html %]')"> [% END %] </div> |