Giter Club home page Giter Club logo

Comments (3)

DeepDiver1975 avatar DeepDiver1975 commented on June 18, 2024 1
1. https://github.com/owncloud/owncloud-design-system/blob/master/src/templates/Files.vue#L258-L261

I was missing this part ... let me retry this .... still not convinced in my vue comfort zone ;-)

from owncloud-design-system.

butonic avatar butonic commented on June 18, 2024
  1. actions for the file are passed in the event like in https://github.com/owncloud/owncloud-design-system/blob/master/src/patterns/OcFileActions.vue#L173 and in https://github.com/owncloud/owncloud-design-system/blob/master/src/templates/Files.vue#L258-L261
    While that works as designed the parameter payload should probably not be called file. Maybe stich with payload, as it contains a fileobject and anactions` array.

  2. toggling via a bound variable creates a coupling between the file actions and the template it is being used on. using events is less coupled, IMO. If we want the file actions to be triggered from anywhere in the UI doing that via a shared state requires more work than by using the global event system.

  3. file name is passed in via the event as well.

it might make sense to pull all this from the store. @felixheidecke mentioned something like that ... but it was a little outside my vue comfort zone.

from owncloud-design-system.

DeepDiver1975 avatar DeepDiver1975 commented on June 18, 2024

works - no need to change anything -> closing

from owncloud-design-system.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.