Project

General

Profile

« Previous | Next » 

Revision 561cc3e5

Added by Jim Pingle almost 5 years ago

diag_dns.php: Fix button icon to match text for alias actions.

View differences:

src/usr/local/www/diag_dns.php
215 215
))->addClass('btn-primary');
216 216

  
217 217
if (!empty($resolved) && isAllowedPage('firewall_aliases_edit.php')) {
218
	if ($alias_exists) {
219
		$button_text = gettext("Update alias");
220
	} else {
221
		$button_text = gettext("Add alias");
222
	}
223 218
	$form->addGlobal(new Form_Button(
224 219
		'create_alias',
225
		$button_text,
220
		($alias_exists) ? gettext("Update Alias") : gettext("Add Alias"),
226 221
		null,
227
		'fa-plus'
222
		($alias_exists) ? 'fa-refresh' : 'fa-plus'
228 223
	))->removeClass('btn-primary')->addClass('btn-success');
229 224
}
230 225

  

Also available in: Unified diff