Skip to content

Commit

Permalink
refactor: change update button to install or update (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyreuter authored Jun 14, 2023
1 parent 8328cce commit ae72437
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions admin/src/SettingsPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ public final function settingsPage(): void
<?= !empty($plugin_data['Version']) ? $plugin_data['Version'] : 'Base'; ?>
</td>
<td>
<button class="install-button primary button" <?= $installed ? 'disabled' : '' ?>
<button class="install-button primary button"
data-repo="<?= empty($data['name']) ? '' : $data['name']; ?>"
onclick="document.querySelector('#repo-to-install').value =this.dataset.repo;">
Install
<?= $installed ? "Update" : "Install" ?>
</button>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion cerberus-plugins-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Plugin Name: Cerberus Plugins Manager
* Description: Manages the cerberus plugins
* Version: 1.0.2
* Version: 1.0.3
* Requires at least: 5.7
* Author: Casey
*/
Expand Down

0 comments on commit ae72437

Please sign in to comment.