Skip to content

Commit

Permalink
fix: causing some extensions title to dissapear when the extension is…
Browse files Browse the repository at this point in the history
… disabled

Closes #3
  • Loading branch information
Joedmin committed Oct 24, 2024
1 parent ce1bfef commit a006600
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions Controllers/wallabagButtonController.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@ public function addAction(): void
$result = $this->curlPostRequest("/api/entries.html", $post_data, true);
$result['response'] = array('title' => $entry->title());

$url_redirect = array('c' => 'extension', 'a' => 'configure', 'params' => array('e' => 'Wallabag Button'));
Minz_Request::bad(_t('ext.wallabagButton.notifications.access_token_not_refreshed'), $url_redirect);


echo json_encode($result);
}

Expand Down
4 changes: 2 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Wallabag Button",
"author": "Joedmin",
"description": "Add articles to Wallabag with one simple button click or a keyboard shortcut.",
"version": 0.1,
"version": 0.2,
"entrypoint": "WallabagButton",
"type": "user"
}
}
2 changes: 1 addition & 1 deletion static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ input#keyboard_shortcut {
list-style-type: decimal;
}

.disabled {
.item-element.wallabagButton .disabled {
display: none !important;
}

Expand Down

0 comments on commit a006600

Please sign in to comment.