Skip to content

Commit

Permalink
fix show/hide auth in api tool, clarify apikey's on user account page
Browse files Browse the repository at this point in the history
  • Loading branch information
TrystanLea committed Dec 16, 2021
1 parent 3d75353 commit 57b7a7a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Lib/api_tool_view.php
Expand Up @@ -69,9 +69,10 @@
</td>
</tr>
<tr>
<td><b><?php dgettext('lib_messages','Authentication'); ?></b></td>
<td><b><?php echo dgettext('lib_messages','Authentication'); ?></b></td>
<td>
<button v-if="!auth_visible" class="btn btn-small" @click="show_auth"><?php echo dgettext('lib_messages','Show'); ?>
<button v-if="auth_visible" class="btn btn-small" @click="hide_auth"><?php echo dgettext('lib_messages','Hide'); ?>
</tr>
<tr>
<td><b><?php echo dgettext('lib_messages','Example URL'); ?></b></td>
Expand Down
2 changes: 1 addition & 1 deletion Modules/user/profile/profile.css
Expand Up @@ -36,7 +36,7 @@
}

.table td:nth-child(1) {
width:150px;
width:200px;
}

@media (max-width: 576px) {
Expand Down
6 changes: 3 additions & 3 deletions Modules/user/profile/profile.php
Expand Up @@ -10,7 +10,7 @@
*/
// no direct access
defined('EMONCMS_EXEC') or die('Restricted access');
global $path; $v=2;
global $path; $v=3;
?>
<link href="<?php echo $path; ?>Modules/user/profile/profile.css?v=<?php echo $v; ?>" rel="stylesheet">
<script type="text/javascript" src="<?php echo $path; ?>Modules/user/profile/md5.js?v=<?php echo $v; ?>"></script>
Expand Down Expand Up @@ -53,13 +53,13 @@
<td></td>
</tr>
<tr>
<td class="muted"><?php echo _('Write API Key'); ?></td>
<td class="muted"><?php echo _('Read & Write API Key'); ?></td>
<td><div class="apikey">{{ user.apikey_write }}</div></td>
<td><i class="icon-share" @click="copy_text_to_clipboard(user.apikey_write,'<?php echo _("Write API Key copied to clipboard"); ?>')"></i></td>
<td><button class="btn btn-small" @click="new_apikey('write')"><?php echo _('Generate New'); ?></button></td>
</tr>
<tr>
<td class="muted"><?php echo _('Read API Key'); ?></td>
<td class="muted"><?php echo _('Read Only API Key'); ?></td>
<td><div class="apikey">{{ user.apikey_read }}</div></td>
<td><i class="icon-share" @click="copy_text_to_clipboard(user.apikey_read,'<?php echo _("Read API Key copied to clipboard"); ?>')"></i></td>
<td><button class="btn btn-small" @click="new_apikey('read')"><?php echo _('Generate New'); ?></button></td>
Expand Down

0 comments on commit 57b7a7a

Please sign in to comment.