Disfactory / frontend

Frontend of disfactory.tw. Built with Vue.js. For backend please checkout https://github.com/Disfactory/Disfactory
https://disfactory.tw
MIT License
19 stars 16 forks source link

增加圖片上傳中的狀態提示 #148

Closed Yukaii closed 2 years ago

Yukaii commented 2 years ago

Describe the bug A clear and concise description of what the bug is. 請清晰詳細的描述這個問題

To Reproduce Steps to reproduce the behavior: 列出可以重現問題的步驟:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem. 截圖

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

Add any other context about the problem here.

Yukaii commented 2 years ago

補充上傳圖片時的按鈕,應在圖片上傳時,顯示為「上傳中......」

スクリーンショット 2022-04-09 午後1 41 53
Yukaii commented 2 years ago

https://github.com/Disfactory/frontend/blob/5a70e152af41ad9350c246de695b9907193b1f17/src/components/UpdateFactorySteps.vue#L62-L74

參考 vue template uploading 的判斷,顯示上傳中或 submitText

https://github.com/Disfactory/frontend/blob/d609f9e42e8983cc4552537e2808e2962347f515/src/components/ImageUploadForm.vue#L59-L63