committed by
Julius Härtl
parent
5eed353d5a
commit
d25c7feb13
@@ -178,7 +178,6 @@ class BoardController extends ApiController {
|
|||||||
* @throws \OCP\AppFramework\Db\MultipleObjectsReturnedException
|
* @throws \OCP\AppFramework\Db\MultipleObjectsReturnedException
|
||||||
*/
|
*/
|
||||||
public function export($boardId) {
|
public function export($boardId) {
|
||||||
|
|
||||||
return $this->boardService->export($boardId);
|
return $this->boardService->export($boardId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ export default {
|
|||||||
confirmClasses: 'error',
|
confirmClasses: 'error',
|
||||||
cancel: t('deck', 'Cancel'),
|
cancel: t('deck', 'Cancel'),
|
||||||
},
|
},
|
||||||
async(result) => {
|
async (result) => {
|
||||||
if (result) {
|
if (result) {
|
||||||
try {
|
try {
|
||||||
this.isLoading = true
|
this.isLoading = true
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ export default {
|
|||||||
},
|
},
|
||||||
shareFromFiles() {
|
shareFromFiles() {
|
||||||
picker.pick()
|
picker.pick()
|
||||||
.then(async(path) => {
|
.then(async (path) => {
|
||||||
console.debug(`path ${path} selected for sharing`)
|
console.debug(`path ${path} selected for sharing`)
|
||||||
if (!path.startsWith('/')) {
|
if (!path.startsWith('/')) {
|
||||||
throw new Error(t('files', 'Invalid path selected'))
|
throw new Error(t('files', 'Invalid path selected'))
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ export default {
|
|||||||
updateDescription() {
|
updateDescription() {
|
||||||
this.descriptionLastEdit = Date.now()
|
this.descriptionLastEdit = Date.now()
|
||||||
clearTimeout(this.descriptionSaveTimeout)
|
clearTimeout(this.descriptionSaveTimeout)
|
||||||
this.descriptionSaveTimeout = setTimeout(async() => {
|
this.descriptionSaveTimeout = setTimeout(async () => {
|
||||||
await this.saveDescription()
|
await this.saveDescription()
|
||||||
}, 2500)
|
}, 2500)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ const createCancelToken = () => axios.CancelToken.source()
|
|||||||
function search({ query, cursor }) {
|
function search({ query, cursor }) {
|
||||||
const cancelToken = createCancelToken()
|
const cancelToken = createCancelToken()
|
||||||
|
|
||||||
const request = async() => axios.get(generateOcsUrl('apps/deck/api/v1.0/search'), {
|
const request = async () => axios.get(generateOcsUrl('apps/deck/api/v1.0/search'), {
|
||||||
cancelToken: cancelToken.token,
|
cancelToken: cancelToken.token,
|
||||||
params: {
|
params: {
|
||||||
term: query,
|
term: query,
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export default {
|
|||||||
bodyFormData.append('cardId', this.cardId)
|
bodyFormData.append('cardId', this.cardId)
|
||||||
bodyFormData.append('type', type)
|
bodyFormData.append('type', type)
|
||||||
bodyFormData.append('file', file)
|
bodyFormData.append('file', file)
|
||||||
await queue.add(async() => {
|
await queue.add(async () => {
|
||||||
try {
|
try {
|
||||||
await this.$store.dispatch('createAttachment', {
|
await this.$store.dispatch('createAttachment', {
|
||||||
cardId: this.cardId,
|
cardId: this.cardId,
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export class BoardApi {
|
|||||||
* Updates a board.
|
* Updates a board.
|
||||||
*
|
*
|
||||||
* @param {Board} board the board object to update
|
* @param {Board} board the board object to update
|
||||||
* @returns {Promise}
|
* @return {Promise}
|
||||||
*/
|
*/
|
||||||
updateBoard(board) {
|
updateBoard(board) {
|
||||||
return axios.put(this.url(`/boards/${board.id}`), board)
|
return axios.put(this.url(`/boards/${board.id}`), board)
|
||||||
@@ -63,7 +63,7 @@ export class BoardApi {
|
|||||||
* @property {string} color
|
* @property {string} color
|
||||||
* @param {BoardCreateObject} boardData The board data to send.
|
* @param {BoardCreateObject} boardData The board data to send.
|
||||||
* color the hexadecimal color value formated /[0-9A-F]{6}/i
|
* color the hexadecimal color value formated /[0-9A-F]{6}/i
|
||||||
* @returns {Promise}
|
* @return {Promise}
|
||||||
*/
|
*/
|
||||||
createBoard(boardData) {
|
createBoard(boardData) {
|
||||||
return axios.post(this.url('/boards'), boardData)
|
return axios.post(this.url('/boards'), boardData)
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ export class StackApi {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Stack} stack stack object to create
|
* @param {Stack} stack stack object to create
|
||||||
* @returns {Promise}
|
* @return {Promise}
|
||||||
*/
|
*/
|
||||||
createStack(stack) {
|
createStack(stack) {
|
||||||
return axios.post(this.url('/stacks'), stack)
|
return axios.post(this.url('/stacks'), stack)
|
||||||
|
|||||||
@@ -378,7 +378,7 @@ export default new Vuex.Store({
|
|||||||
* @param commit.commit
|
* @param commit.commit
|
||||||
* @param commit
|
* @param commit
|
||||||
* @param board The board to update.
|
* @param board The board to update.
|
||||||
* @returns {Promise<void>}
|
* @return {Promise<void>}
|
||||||
*/
|
*/
|
||||||
async updateBoard({ commit }, board) {
|
async updateBoard({ commit }, board) {
|
||||||
const storedBoard = await apiClient.updateBoard(board)
|
const storedBoard = await apiClient.updateBoard(board)
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ export default {
|
|||||||
ComponentVM.$destroy()
|
ComponentVM.$destroy()
|
||||||
reject(new Error('Canceled'))
|
reject(new Error('Canceled'))
|
||||||
})
|
})
|
||||||
ComponentVM.$root.$on('select', async(id) => {
|
ComponentVM.$root.$on('select', async (id) => {
|
||||||
const result = await createShare({
|
const result = await createShare({
|
||||||
path: self.fileInfo.path + '/' + self.fileInfo.name,
|
path: self.fileInfo.path + '/' + self.fileInfo.name,
|
||||||
shareType: 12,
|
shareType: 12,
|
||||||
|
|||||||
Reference in New Issue
Block a user