Minor changes

This commit is contained in:
Marcel Klehr 2020-04-07 21:38:24 +02:00
parent 18d7da49ee
commit c5f758dea1
3 changed files with 20 additions and 37 deletions

View File

@ -12,7 +12,6 @@ namespace OCA\Bookmarks\Controller;
use DateInterval;
use DateTime;
use OCA\Bookmarks\Contract\IBookmarkPreviewer;
use OCA\Bookmarks\Contract\IImage;
use OCA\Bookmarks\Db\Bookmark;
use OCA\Bookmarks\Db\BookmarkMapper;
@ -33,7 +32,6 @@ use OCA\Bookmarks\QueryParameters;
use OCA\Bookmarks\Service\Authorizer;
use OCA\Bookmarks\Service\HtmlExporter;
use OCA\Bookmarks\Service\HtmlImporter;
use OCA\Bookmarks\Service\LinkExplorer;
use OCP\AppFramework\ApiController;
use OCP\AppFramework\Db\DoesNotExistException;
use OCP\AppFramework\Db\MultipleObjectsReturnedException;
@ -92,21 +90,6 @@ class BookmarkController extends ApiController {
*/
private $folderMapper;
/**
* @var LinkExplorer
*/
private $linkExplorer;
/**
* @var IBookmarkPreviewer
*/
private $bookmarkPreviewer;
/**
* @var IBookmarkPreviewer
*/
private $faviconPreviewer;
/**
* @var ITimeFactory
*/

View File

@ -76,26 +76,26 @@
import TagLine from './TagLine'
export default {
name: 'Bookmark',
components: {
Actions,
ActionButton,
TagLine,
name: 'Bookmark',
components: {
Actions,
ActionButton,
TagLine,
},
props: {
bookmark: {
type: Object,
required: true,
},
props: {
bookmark: {
type: Object,
required: true,
},
},
data() {
return { title: this.bookmark.title, renaming: false, selected: false }
},
computed: {
apiUrl() {
if (this.isPublic) {
return generateUrl('/apps/bookmarks/public/rest/v2')
}
},
data() {
return { title: this.bookmark.title, renaming: false, selected: false }
},
computed: {
apiUrl() {
if (this.isPublic) {
return generateUrl('/apps/bookmarks/public/rest/v2')
}
return generateUrl('/apps/bookmarks')
},
iconUrl() {

View File

@ -284,7 +284,7 @@ export default {
commit(mutations.FETCH_END, 'tag')
})
},
[actions.LOAD_TAGS]({ commit, dispatch, state }, link) {
[actions.LOAD_TAGS]({ commit, dispatch, state }) {
commit(mutations.FETCH_START, { type: 'tags' })
return axios
.get(url(state, '/tag'), { params: { count: true } })