Skip to content

Commit ae72437

Browse files
authored
refactor: change update button to install or update (#4)
1 parent 8328cce commit ae72437

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

admin/src/SettingsPage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ public final function settingsPage(): void
109109
<?= !empty($plugin_data['Version']) ? $plugin_data['Version'] : 'Base'; ?>
110110
</td>
111111
<td>
112-
<button class="install-button primary button" <?= $installed ? 'disabled' : '' ?>
112+
<button class="install-button primary button"
113113
data-repo="<?= empty($data['name']) ? '' : $data['name']; ?>"
114114
onclick="document.querySelector('#repo-to-install').value =this.dataset.repo;">
115-
Install
115+
<?= $installed ? "Update" : "Install" ?>
116116
</button>
117117
</td>
118118
</tr>

cerberus-plugins-manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Plugin Name: Cerberus Plugins Manager
55
* Description: Manages the cerberus plugins
6-
* Version: 1.0.2
6+
* Version: 1.0.3
77
* Requires at least: 5.7
88
* Author: Casey
99
*/

0 commit comments

Comments
 (0)